﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WallpaperForm.Migrations
{
    /// <inheritdoc />
    public partial class InitialCreatev012 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<double>(
                name: "PlayTime",
                table: "wallpaper_item",
                type: "double",
                nullable: true,
                oldClrType: typeof(double),
                oldType: "double");

            migrationBuilder.AddColumn<string>(
                name: "GroupName",
                table: "wallpaper_item",
                type: "longtext",
                nullable: true,
                collation: "utf8mb4_0900_ai_ci")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GroupName",
                table: "wallpaper_item");

            migrationBuilder.AlterColumn<double>(
                name: "PlayTime",
                table: "wallpaper_item",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                oldClrType: typeof(double),
                oldType: "double",
                oldNullable: true);
        }
    }
}
